android studio listview arrayadapter

117

android studio listview arrayadapter -

//Creating the Adapter:->

ArrayAdapter<String> itemsAdapter = 
    new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items);

//Setting the Adapter:->
	listView.setAdapter(itemsAdapter);

Comments

Submit
0 Comments